how to find the value of logarithm